﻿<%@ Page Title="" Language="C#" MasterPageFile= "~/View/Master.Master" AutoEventWireup="true" CodeBehind="Approve_RejectRequisition.aspx.cs" Inherits="PresentationLayer.View.DepartmentManager.Approve_RejectRequisition" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">

            <uc1:mainMenu ID="mainMenu1" runat="server" />

        </td>
        <td>



    <center><h2><u>Approve Stationery Requisitions</u></h2></center>
    <br />
    <table>
    <asp:Label ID="lbl_message" runat="server" Text="" Visible="False"></asp:Label>
    <div class="entry">
    <tr>    
    <td>&nbsp;</td>
    <td class="style8">&nbsp;</td>
    <td>
    <asp:gridview id="gv_ReqApproveList" runat="server" autogeneratecolumns="False" AllowPaging="True" 
            onpageindexchanging="gv_ReqApproveList_PageIndexChanging" PageSize="7" 
            OnRowCancelingEdit="gv_OnRowCancelEdit"  
           
            onrowcommand="gv_ReqApproveList_RowCommand"
            DataKeyNames="reqFormId"
      Width="555px" CellPadding="4" 
        ForeColor="#333333" GridLines="None" Height="16px" style="margin-left: 0px" 
            onselectedindexchanged="gv_ReqApproveList_SelectedIndexChanged">        
        <AlternatingRowStyle BackColor="White" />
     <columns>
       <asp:BoundField DataField="reqFormId" HeaderText="Requisition ID" />   
        <asp:BoundField DataField="empName" HeaderText="Employee Name" />               
     
     <asp:BoundField DataField="requestedDate" HeaderText="Requisition Date" />
         
         <asp:TemplateField ShowHeader="False">
             <ItemTemplate>
                 <asp:Button ID="Button1" runat="server" CausesValidation="false" 
                     CommandName="ViewDetails" Text="View Details"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                 <asp:HiddenField ID="hdnReqId" runat="server" Value='<%# Eval("reqFormId") %>'/>
                
                 <asp:HiddenField ID="hdnEmpId" runat="server" Value='<%# Eval("empId") %>' />
                       
             </ItemTemplate>
         </asp:TemplateField>
     </columns>  
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
     </td>
     </tr> 
     </table>
     <br />  
     <table>
     <tr>
     <td>&nbsp;&nbsp;</td>
     </tr>
     </table> 

     <style type="text/css">
        .entry
        {
            width: 630px;
        }
    </style>

    <asp:Panel ID="Panel1" runat="server">
        <div class="entry">
            <h2>
                Approve Requisition</h2>
            Requisition Form :<asp:TextBox 
                    ID="txt_ReqID" runat="server" Enabled="False" 
                ontextchanged="txt_ReqID_TextChanged"></asp:TextBox>
            <br />
            Employee Name :
            <asp:TextBox ID="txt_EmpName" runat="server" 
                    Enabled="False"></asp:TextBox>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <br />
            Email :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txt_Email" runat="server" Enabled="False"></asp:TextBox>
            <br />
            Date :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txt_ReqDate" runat="server" Enabled="False"></asp:TextBox>
            <br />
            <br />
            <asp:GridView ID="gv_ReqDetailList" runat="server" AutoGenerateColumns="False" 
                CellPadding="4"
                ForeColor="#333333" GridLines="None" 
                style="margin-left: 0px" Width="487px" 
                onselectedindexchanged="gv_ReqDetailList_SelectedIndexChanged">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="categoryName" HeaderText="Product Category" />
                    <asp:BoundField DataField="itemName" HeaderText="Product Description" />
                    <asp:BoundField DataField="requestedQty" HeaderText="Quantity" />
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <asp:HiddenField ID="hdnempId" runat="server" />
            <br />
            Reject Reason:&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txt_rejectReason" runat="server" Width="281px"></asp:TextBox>
            <br />
            <br />
            <asp:Button ID="btn_approve" runat="server" onclick="btn_approve_Click" 
                Text="Approve" oncommand="btn_approve_Command" 
                onclientclick="alert('Requisition Approved');" Height="29px" Width="84px" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btn_reject" runat="server" onclick="btn_reject_Click" 
                Text="Reject" onclientclick="alert('Requisition Rejected');" Height="28px" 
                Width="84px" />
            <br />
            <br />
            <br />
            <br />
            <br />
            <asp:Button ID="btnCancel0" runat="server" OnClick="btn_Cancel_Click" 
                Text="Cancel" Width="81px" />
        </div>
    </asp:Panel>
            
    <p class="links">
        &nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </p>
    
</td></tr></table>
</asp:Content>
